package org.yue.netty.servlet.util;

import io.netty.handler.codec.http.FullHttpResponse;
import io.netty.handler.codec.http.HttpRequest;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by root on 4/13/17.
 */
public class HttpUtil {

    public static HttpServletRequest getServletRequest(HttpRequest req, ServletContext servletContext){
        return new NettySevletRequest(req,servletContext);
    }

    public static HttpServletResponse getServletResponse(FullHttpResponse response, ServletContext servletContext) {
        return new NettyServletResponse();
    }
}
